find count number of occurrence of given substring using python